package com.hutao.medical.mapper.quality;

import org.apache.ibatis.annotations.Param;

import com.hutao.medical.pojo.quality.MedicalFunction;

public interface MedicalFunctionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MedicalFunction record);

    int insertSelective(MedicalFunction record);

    MedicalFunction selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MedicalFunction record);

    int updateByPrimaryKey(MedicalFunction record);
    
    /**
     * 根据firstGuid和功能类型id查看是否存在
     * @param firstGuid
     * @param functionTypeId
     * @return
     */
    int isExistMedFunctionByFirstGuidAndFunType(@Param("firstGuid")String firstGuid,@Param("functionTypeId")Integer functionTypeId);
    
    /**
     * 根据firstGuid和functionTypeId查询functionType的id
     * @param firstGuid
     * @param functionTypeId
     * @return
     */
    MedicalFunction getMediFunctionByFirstGuidAndFunType(@Param("firstGuid")String firstGuid,@Param("functionTypeId")Integer functionTypeId);
}